<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>NEWS-2.0.0 - RDoc Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="file">
  <!-- this is page.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0-preview2 NOT FOUND -->
  </div> <!-- end action bar -->


 <div class='wrapper hdiv'>

 


<nav id='vapp' role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  
<div class="nav-section">
  <h3>Table of Contents</h3>

  <ul class="link-list" role="directory">
    <li><a href="#label-NEWS+for+Ruby+2.0.0">NEWS for Ruby 2.0.0</a>
    <li><a href="#label-Changes+since+the+1.9.3+release">Changes since the 1.9.3 release</a>
    <li><a href="#label-Language+changes">Language changes</a>
    <li><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)</a>
    <li><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)</a>
    <li><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-C+API+updates">C API updates</a>
  </ul>
</div>

  <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>

  <div id="project-metadata">
   <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
    
<div id="fileindex-section" class="nav-section">
  <h3>Pages</h3>

  <ul class="link-list">
    <li><a href="../NEWS/NEWS-1_8_7.html">NEWS-1.8.7</a>
    <li><a href="../NEWS/NEWS-1_9_1.html">NEWS-1.9.1</a>
    <li><a href="../NEWS/NEWS-1_9_2.html">NEWS-1.9.2</a>
    <li><a href="../NEWS/NEWS-1_9_3.html">NEWS-1.9.3</a>
    <li><a href="../NEWS/NEWS-2_0_0.html">NEWS-2.0.0</a>
    <li><a href="../NEWS/NEWS-2_1_0.html">NEWS-2.1.0</a>
    <li><a href="../NEWS/NEWS-2_2_0.html">NEWS-2.2.0</a>
    <li><a href="../NEWS/NEWS-2_3_0.html">NEWS-2.3.0</a>
    <li><a href="../NEWS/NEWS-2_4_0.html">NEWS-2.4.0</a>
    <li><a href="../NEWS/NEWS-2_5_0.html">NEWS-2.5.0</a>
    <li><a href="../NEWS/NEWS-2_6_0.html">NEWS-2.6.0</a>
    <li><a href="../NEWS/NEWS-2_7_0.html">NEWS-2.7.0</a>
    <li><a href="../NEWS/NEWS-3_0_0_md.html">NEWS-3.0.0</a>
    <li><a href="../NEWS/NEWS-3_1_0_md.html">NEWS-3.1.0</a>
    <li><a href="../NEWS/NEWS-3_2_0_md.html">NEWS-3.2.0</a>
    <li><a href="../bsearch_rdoc.html">bsearch</a>
    <li><a href="../bug_triaging_rdoc.html">bug_triaging</a>
    <li><a href="../case_mapping_rdoc.html">case_mapping</a>
    <li><a href="../character_selectors_rdoc.html">character_selectors</a>
    <li><a href="../command_injection_rdoc.html">command_injection</a>
    <li><a href="../contributing_md.html">contributing</a>
    <li><a href="../contributing/building_ruby_md.html">building_ruby</a>
    <li><a href="../contributing/documentation_guide_md.html">documentation_guide</a>
    <li><a href="../contributing/glossary_md.html">glossary</a>
    <li><a href="../contributing/making_changes_to_ruby_md.html">making_changes_to_ruby</a>
    <li><a href="../contributing/making_changes_to_stdlibs_md.html">making_changes_to_stdlibs</a>
    <li><a href="../contributing/reporting_issues_md.html">reporting_issues</a>
    <li><a href="../contributing/testing_ruby_md.html">testing_ruby</a>
    <li><a href="../dig_methods_rdoc.html">dig_methods</a>
    <li><a href="../distribution_md.html">distribution</a>
    <li><a href="../dtrace_probes_rdoc.html">dtrace_probes</a>
    <li><a href="../encodings_rdoc.html">encodings</a>
    <li><a href="../extension_ja_rdoc.html">extension.ja</a>
    <li><a href="../extension_rdoc.html">extension</a>
    <li><a href="../fiber_md.html">fiber</a>
    <li><a href="../format_specifications_rdoc.html">format_specifications</a>
    <li><a href="../globals_rdoc.html">globals</a>
    <li><a href="../implicit_conversion_rdoc.html">implicit_conversion</a>
    <li><a href="../keywords_rdoc.html">keywords</a>
    <li><a href="../maintainers_md.html">maintainers</a>
    <li><a href="../marshal_rdoc.html">marshal</a>
    <li><a href="../memory_view_md.html">memory_view</a>
    <li><a href="../optparse/argument_converters_rdoc.html">argument_converters</a>
    <li><a href="../optparse/creates_option_rdoc.html">creates_option</a>
    <li><a href="../optparse/option_params_rdoc.html">option_params</a>
    <li><a href="../optparse/tutorial_rdoc.html">tutorial</a>
    <li><a href="../packed_data_rdoc.html">packed_data</a>
    <li><a href="../ractor_md.html">ractor</a>
    <li><a href="../regexp_rdoc.html">regexp</a>
    <li><a href="../regexp/methods_rdoc.html">methods</a>
    <li><a href="../regexp/unicode_properties_rdoc.html">unicode_properties</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING.html">COPYING</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING_ja.html">COPYING.ja</a>
    <li><a href="../ruby_3_3_0_preview2/LEGAL.html">LEGAL</a>
    <li><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a>
    <li><a href="../ruby_3_3_0_preview2/README_ja_md.html">README.ja</a>
    <li><a href="../ruby_3_3_0_preview2/README_md.html">README</a>
    <li><a href="../security_rdoc.html">security</a>
    <li><a href="../signals_rdoc.html">signals</a>
    <li><a href="../standard_library_rdoc.html">standard_library</a>
    <li><a href="../strftime_formatting_rdoc.html">strftime_formatting</a>
    <li><a href="../syntax_rdoc.html">syntax</a>
    <li><a href="../syntax/assignment_rdoc.html">assignment</a>
    <li><a href="../syntax/calling_methods_rdoc.html">calling_methods</a>
    <li><a href="../syntax/comments_rdoc.html">comments</a>
    <li><a href="../syntax/control_expressions_rdoc.html">control_expressions</a>
    <li><a href="../syntax/exceptions_rdoc.html">exceptions</a>
    <li><a href="../syntax/literals_rdoc.html">literals</a>
    <li><a href="../syntax/methods_rdoc.html">methods</a>
    <li><a href="../syntax/miscellaneous_rdoc.html">miscellaneous</a>
    <li><a href="../syntax/modules_and_classes_rdoc.html">modules_and_classes</a>
    <li><a href="../syntax/pattern_matching_rdoc.html">pattern_matching</a>
    <li><a href="../syntax/precedence_rdoc.html">precedence</a>
    <li><a href="../syntax/refinements_rdoc.html">refinements</a>
    <li><a href="../timezones_rdoc.html">timezones</a>
    <li><a href="../windows_md.html">windows</a>
    <li><a href="../yjit/yjit_md.html">yjit</a>
    <li><a href="../yjit/yjit_hacking_md.html">yjit_hacking</a>
  </ul>
</div>

   </div>
  </div>
</nav>


<!--  carbon ads here -->

<div id='extraz'>
  <div class='adzbox-index'  >
   
  </div>
 </div>         


<main role="main" aria-label="Page NEWS/NEWS-2.0.0">

<h1 id="label-NEWS+for+Ruby+2.0.0"><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a> for Ruby 2.0.0<span><a href="#label-NEWS+for+Ruby+2.0.0">&para;</a> <a href="#top">&uarr;</a></span></h1>

<p>This document is a list of user visible feature changes made between releases except for bug fixes.</p>

<p>Note that each entry is kept so brief that no reason behind or reference information is supplied with.  For a full list of changes with all sufficient information, see the ChangeLog file.</p>

<h2 id="label-Changes+since+the+1.9.3+release">Changes since the 1.9.3 release<span><a href="#label-Changes+since+the+1.9.3+release">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Language+changes">Language changes<span><a href="#label-Language+changes">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>Added keyword arguments.</p>
</li><li>
<p>Added %i and %I for symbol list creation (similar to %w and %W).</p>
</li><li>
<p>Default source encoding is changed to UTF-8. (was US-ASCII)</p>
</li><li>
<p>No warning for unused variables starting with ‘_’</p>
</li></ul>

<h3 id="label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)<span><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../ARGF.html"><code>ARGF</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added ARGF#codepoints and <a href="../ARGF.html#method-i-each_codepoint"><code>ARGF#each_codepoint</code></a>, like the corresponding methods for <a href="../IO.html"><code>IO</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Array.html"><code>Array</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Array.html#method-i-bsearch"><code>Array#bsearch</code></a> for binary search.</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p>random parameter of <a href="../Array.html#method-i-shuffle-21"><code>Array#shuffle!</code></a> and <a href="../Array.html#method-i-sample"><code>Array#sample</code></a> now will be called with one argument, maximum value.</p>
</li><li>
<p>when given <a href="../Range.html"><code>Range</code></a> arguments, <a href="../Array.html#method-i-values_at"><code>Array#values_at</code></a> now returns nil for each value that is out-of-range.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Enumerable.html"><code>Enumerable</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Enumerable.html#method-i-lazy"><code>Enumerable#lazy</code></a> method for lazy enumeration.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Enumerator.html"><code>Enumerator</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Enumerator.html#method-i-size"><code>Enumerator#size</code></a> for lazy size evaluation.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="../Enumerator.html#method-c-new"><code>Enumerator.new</code></a> accept an argument for lazy size evaluation.</p>
</li></ul>
</li><li>
<p>new class <a href="../Enumerator/Lazy.html"><code>Enumerator::Lazy</code></a> for lazy enumeration</p>
</li></ul>
</li><li>
<p><a href="../ENV.html"><code>ENV</code></a></p>
<ul><li>
<p>aliased method:</p>
<ul><li>
<p><a href="../ENV.html#method-c-to_h"><code>ENV.to_h</code></a> is a new alias for <a href="../ENV.html#method-c-to_hash"><code>ENV.to_hash</code></a></p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Fiber.html"><code>Fiber</code></a></p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="../Fiber.html#method-i-resume"><code>Fiber#resume</code></a> cannot resume a fiber which invokes “Fiber#transfer”.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../File.html"><code>File</code></a></p>
<ul><li>
<p>extended method:</p>
<ul><li>
<p><a href="../File.html#method-c-fnmatch-3F"><code>File.fnmatch?</code></a> now expands braces in the pattern if File::FNM_EXTGLOB option is given.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../GC.html"><code>GC</code></a></p>
<ul><li>
<p>improvements:</p>
<ul><li>
<p>introduced the bitmap marking which suppresses to copy a memory page with Copy-on-Write.</p>
</li><li>
<p>introduced the non-recursive marking which avoids unexpected stack overflow.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../GC/Profiler.html"><code>GC::Profiler</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../GC/Profiler.html#method-c-raw_data"><code>GC::Profiler.raw_data</code></a> which returns raw profile data for <a href="../GC.html"><code>GC</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Hash.html"><code>Hash</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Hash.html#method-i-to_h"><code>Hash#to_h</code></a> as explicit conversion method, like <a href="../Array.html#method-i-to_a"><code>Array#to_a</code></a>.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="../Hash.html#method-i-default_proc-3D"><code>Hash#default_proc=</code></a> can be passed nil to clear the default proc.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../IO.html"><code>IO</code></a></p>
<ul><li>
<p>deprecated methods:</p>
<ul><li>
<p>IO#lines, bytes, chars and codepoints are deprecated.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Kernel.html"><code>Kernel</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Kernel.html#method-i-Hash"><code>Kernel#Hash</code></a> conversion method like Array() or Float().</p>
</li><li>
<p>added Kernel#__dir__ which returns the absolute path of the directory of the file from which this method is called.</p>
</li><li>
<p>added <a href="../Kernel.html#method-i-caller_locations"><code>Kernel#caller_locations</code></a> which returns an array of frame information objects.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="../Kernel.html#method-i-warn"><code>Kernel#warn</code></a> accepts multiple args in like puts.</p>
</li><li>
<p><a href="../Kernel.html#method-i-caller"><code>Kernel#caller</code></a> accepts second optional argument ‘n’ which specify required caller size.</p>
</li><li>
<p>Kernel#to_enum and enum_for accept a block for lazy size evaluation.</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p>system() and exec() close non-standard file descriptors (The default of :close_others option is changed to true by default.)</p>
</li><li>
<p>respond_to? against a protected method now returns false unless the second argument is true.</p>
</li><li>
<p>__callee__ has returned to the original behavior, and now returns the called name but not the original name in an aliased method.</p>
</li><li>
<p>Kernel#inspect does not call to_s anymore (it used to call redefined to_s).</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../LoadError.html"><code>LoadError</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added LoadError#path method to return the file name that could not be loaded.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Module.html"><code>Module</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Module.html#method-i-prepend"><code>Module#prepend</code></a> which is similar to <a href="../Module.html#method-i-include"><code>Module#include</code></a>, however a method in the prepended module overrides the corresponding method in the prepending module.</p>
</li><li>
<p>added <a href="../Module.html#method-i-prepended"><code>Module.prepended</code></a> and <a href="../Module.html#method-i-prepend_features"><code>Module.prepend_features</code></a>, similar to included and append_features.</p>
</li><li>
<p>added <a href="../Module.html#method-i-refine"><code>Module#refine</code></a>, which extends a class or module locally. [experimental]</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p><a href="../Module.html#method-i-define_method"><code>Module#define_method</code></a> accepts a <a href="../UnboundMethod.html"><code>UnboundMethod</code></a> from a <a href="../Module.html"><code>Module</code></a>.</p>
</li><li>
<p><a href="../Module.html#method-i-const_get"><code>Module#const_get</code></a> accepts a qualified constant string, e.g. Object.const_get(“Foo::Bar::Baz”)</p>
</li></ul>
</li></ul>
</li><li>
<p>Mutex</p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added Mutex#owned? which returns the mutex is held by current thread or not. [experimental]</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p>Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize and Mutex#sleep are no longer allowed to be used from trap handler and raise a <a href="../ThreadError.html"><code>ThreadError</code></a> in such case.</p>
</li><li>
<p>Mutex#sleep may spurious wakeup. Check after wakeup.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../NilClass.html"><code>NilClass</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added nil.to_h which returns {}</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../ObjectSpace/WeakMap.html"><code>ObjectSpace::WeakMap</code></a></p>
<ul><li>
<p>new low level class to hold weak references to objects.</p>
</li></ul>
</li><li>
<p><a href="../Proc.html"><code>Proc</code></a></p>
<ul><li>
<p>incompatible change:</p>
<ul><li>
<p>removed <a href="../Proc.html#method-i-3D-3D"><code>Proc#==</code></a> and eql? so two procs are == only when they are the same object.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Process.html"><code>Process</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added getsid for getting session id (unix only).</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Range.html"><code>Range</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Range.html#method-i-size"><code>Range#size</code></a> for lazy size evaluation.</p>
</li><li>
<p>added <a href="../Range.html#method-i-bsearch"><code>Range#bsearch</code></a> for binary search.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../RubyVM.html"><code>RubyVM</code></a> (MRI specific)</p>
<ul><li>
<p>added <a href="../RubyVM/InstructionSequence.html#method-c-of"><code>RubyVM::InstructionSequence.of</code></a> to get the instruction sequence from a method or a block.</p>
</li><li>
<p>added <a href="../RubyVM/InstructionSequence.html#method-i-path"><code>RubyVM::InstructionSequence#path</code></a>, absolute_path, label, base_label and first_lineno to retrieve information from where the instruction sequence was defined.</p>
</li><li>
<p>added Environment variables to specify stack usage:</p>
<ul><li>
<p>RUBY_THREAD_VM_STACK_SIZE: vm stack size used at thread creation. default: 128KB (32bit CPU) or 256KB (64bit CPU).</p>
</li><li>
<p>RUBY_THREAD_MACHINE_STACK_SIZE: machine stack size used at thread creation. default: 512KB or 1024KB.</p>
</li><li>
<p>RUBY_FIBER_VM_STACK_SIZE: vm stack size used at fiber creation. default: 64KB or 128KB.</p>
</li><li>
<p>RUBY_FIBER_MACHINE_STACK_SIZE: machine stack size used at fiber creation. default: 256KB or 512KB.</p>
</li></ul>

<p>These variables are checked only at launched time.</p>
</li><li>
<p>added constant DEFAULT_PARAMS to get above default parameters.</p>
</li></ul>
</li><li>
<p><a href="../Signal.html"><code>Signal</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Signal.html#method-c-signame"><code>Signal.signame</code></a> which returns signal name</p>
</li></ul>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="../Signal.html#method-c-trap"><code>Signal.trap</code></a> raises <a href="../ArgumentError.html"><code>ArgumentError</code></a> when :SEGV, :BUS, :ILL, :FPE, :VTALRM are specified.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../String.html"><code>String</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../String.html#method-i-b"><code>String#b</code></a> returning a copied string whose encoding is ASCII-8BIT.</p>
</li></ul>
</li><li>
<p>change return value:</p>
<ul><li>
<p><a href="../String.html#method-i-lines"><code>String#lines</code></a> now returns an array instead of an enumerator.</p>
</li><li>
<p><a href="../String.html#method-i-chars"><code>String#chars</code></a> now returns an array instead of an enumerator.</p>
</li><li>
<p><a href="../String.html#method-i-codepoints"><code>String#codepoints</code></a> now returns an array instead of an enumerator.</p>
</li><li>
<p><a href="../String.html#method-i-bytes"><code>String#bytes</code></a> now returns an array instead of an enumerator.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Struct.html"><code>Struct</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Struct.html#method-i-to_h"><code>Struct#to_h</code></a> returning values with keys corresponding to the instance variable names.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Thread.html"><code>Thread</code></a></p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added <a href="../Thread.html#method-i-thread_variable_get"><code>Thread#thread_variable_get</code></a> for getting thread local variables (these are different than <a href="../Fiber.html"><code>Fiber</code></a> local variables).</p>
</li><li>
<p>added <a href="../Thread.html#method-i-thread_variable_set"><code>Thread#thread_variable_set</code></a> for setting thread local variables.</p>
</li><li>
<p>added <a href="../Thread.html#method-i-thread_variables"><code>Thread#thread_variables</code></a> for getting a list of the thread local variable keys.</p>
</li><li>
<p>added <a href="../Thread.html#method-i-thread_variable-3F"><code>Thread#thread_variable?</code></a> for testing to see if a particular thread variable has been set.</p>
</li><li>
<p>added <a href="../Thread.html#method-c-handle_interrupt"><code>Thread.handle_interrupt</code></a> as well as instance and singleton methods pending_interrupt? for asynchronous handling of exceptions</p>
</li><li>
<p>added <a href="../Thread.html#method-i-backtrace_locations"><code>Thread#backtrace_locations</code></a> which returns similar information of <a href="../Kernel.html#method-i-caller_locations"><code>Kernel#caller_locations</code></a>.</p>
</li></ul>
</li><li>
<p>new class <a href="../Thread/Backtrace/Location.html"><code>Thread::Backtrace::Location</code></a> to hold backtrace location information. These are returned by <a href="../Thread.html#method-i-backtrace_locations"><code>Thread#backtrace_locations</code></a> and <a href="../Kernel.html#method-i-caller_locations"><code>Kernel#caller_locations</code></a>.</p>
</li><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="../Thread.html#method-i-join"><code>Thread#join</code></a> and <a href="../Thread.html#method-i-value"><code>Thread#value</code></a> now raises a <a href="../ThreadError.html"><code>ThreadError</code></a> if target thread is the current or main thread.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Time.html"><code>Time</code></a></p>
<ul><li>
<p>change return value:</p>
<ul><li>
<p><a href="../Time.html#method-i-to_s"><code>Time#to_s</code></a> now returns US-ASCII encoding instead of BINARY.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../TracePoint.html"><code>TracePoint</code></a></p>
<ul><li>
<p>new class. This class is replacement of set_trace_func. Easy to use and efficient implementation.</p>
</li></ul>
</li><li>
<p>toplevel</p>
<ul><li>
<p>added method:</p>
<ul><li>
<p>added main.define_method which defines a global function.</p>
</li><li>
<p>added main.using, which imports refinements into the current file or eval string. [experimental]</p>
</li></ul>
</li></ul>
</li></ul>

<h3 id="label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)<span><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../Array.html#method-i-values_at"><code>Array#values_at</code></a></p>

<p>See above.</p>
</li><li>
<p><a href="../String.html#method-i-lines"><code>String#lines</code></a></p>
</li><li>
<p><a href="../String.html#method-i-chars"><code>String#chars</code></a></p>
</li><li>
<p><a href="../String.html#method-i-codepoints"><code>String#codepoints</code></a></p>
</li><li>
<p><a href="../String.html#method-i-bytes"><code>String#bytes</code></a></p>

<p>These methods no longer return an <a href="../Enumerator.html"><code>Enumerator</code></a>, although passing a block is still supported for backwards compatibility.</p>

<p>Code like str.lines.with_index(1) { |line, lineno| … } no longer works because str.lines returns an array.  Replace lines with each_line in such cases.</p>
</li><li>
<p>IO#lines</p>
</li><li>
<p>IO#chars</p>
</li><li>
<p>IO#codepoints</p>
</li><li>
<p>IO#bytes</p>
</li><li>
<p>ARGF#lines</p>
</li><li>
<p>ARGF#chars</p>
</li><li>
<p>ARGF#bytes</p>
</li><li>
<p>StringIO#lines</p>
</li><li>
<p>StringIO#chars</p>
</li><li>
<p>StringIO#codepoints</p>
</li><li>
<p>StringIO#bytes</p>
</li><li>
<p>Zlib::GzipReader#lines</p>
</li><li>
<p>Zlib::GzipReader#bytes</p>

<p>These methods are deprecated in favor of each_line, each_byte, each_char and each_codepoint.</p>
</li><li>
<p><a href="../Proc.html#method-i-3D-3D"><code>Proc#==</code></a></p>
</li><li>
<p><a href="../Proc.html#method-i-eql-3F"><code>Proc#eql?</code></a></p>

<p>These methods were removed. Two procs are == only when they are the same object.</p>
</li><li>
<p>Fixnum</p>
</li><li>
<p>Bignum</p>
</li><li>
<p><a href="../Float.html"><code>Float</code></a></p>

<p>Fixnums, Bignums and Floats are frozen.</p>
</li><li>
<p><a href="../Signal.html#method-c-trap"><code>Signal.trap</code></a></p>

<p>See above.</p>
</li><li>
<p>Merge Onigmo. <a href="https://github.com/k-takata/Onigmo">github.com/k-takata/Onigmo</a></p>
</li><li>
<p>The :close_others option is true by default for system() and exec(). Also, the close-on-exec flag is set by default for all new file descriptors. This means file descriptors doesn’t inherit to spawned process unless explicitly requested such as system(…, fd=&gt;fd).</p>
</li><li>
<p>Kernel#respond_to? against a protected method now returns false unless the second argument is true.</p>
</li><li>
<p>Kernel#respond_to_missing?</p>
</li><li>
<p>Kernel#initialize_clone</p>
</li><li>
<p>Kernel#initialize_dup</p>

<p>These methods are now private.</p>
</li><li>
<p><a href="../Thread.html#method-i-join"><code>Thread#join</code></a>, <a href="../Thread.html#method-i-value"><code>Thread#value</code></a></p>

<p>See above.</p>
</li><li>
<p>Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize and Mutex#sleep</p>

<p>See above.</p>
</li></ul>

<h3 id="label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)<span><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>cgi</p>
<ul><li>
<p>Add HTML5 tag maker.</p>
</li><li>
<p>CGI#header has been renamed to CGI#http_header and aliased to CGI#header.</p>
</li><li>
<p>When HTML5 tagmaker called, overwrite CGI#header, CGI#header function is to create a &lt;header&gt; element.</p>
</li></ul>
</li><li>
<p>CSV</p>
<ul><li>
<p>Removed CSV::dump and CSV::load to protect users from dangerous serialization vulnerability</p>
</li></ul>
</li><li>
<p>iconv</p>
<ul><li>
<p>Iconv has been removed. Use <a href="../String.html#method-i-encode"><code>String#encode</code></a> instead.</p>
</li></ul>
</li><li>
<p>io/console</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p>added IO#cooked which sets the terminal to cooked mode within the given block.</p>
</li><li>
<p>added IO#cooked! which sets the terminal to cooked.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p>IO#raw, IO#raw!, and IO#getch accept keyword arguments, :min and :time.</p>
</li></ul>
</li></ul>
</li><li>
<p>io/wait</p>
<ul><li>
<p>new features:</p>
<ul><li>
<p>added <a href="../IO.html#method-i-wait_writable"><code>IO#wait_writable</code></a> method.</p>
</li><li>
<p>added <a href="../IO.html#method-i-wait_readable"><code>IO#wait_readable</code></a> method as alias of <a href="../IO.html#method-i-wait"><code>IO#wait</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p>json</p>
<ul><li>
<p>updated to 1.7.7.</p>
</li></ul>
</li><li>
<p>net/http</p>
<ul><li>
<p>new features:</p>
<ul><li>
<p>Proxies are now automatically detected from the http_proxy environment variable.  See Net::HTTP::new for details.</p>
</li><li>
<p>gzip and deflate compression are now requested for all requests by default.  See Net::HTTP for details.</p>
</li><li>
<p>SSL sessions are now reused across connections for a single instance. This speeds up connection by using a previously negotiated session.</p>
</li><li>
<p>Requests may be created from a URI which sets the request_uri and host header of the request (but does not change the host connected to).</p>
</li><li>
<p>Responses contain the URI requested which allows easier implementation of redirect following.</p>
</li></ul>
</li><li>
<p>new methods:</p>
<ul><li>
<p>Net::HTTP#local_host</p>
</li><li>
<p>Net::HTTP#local_host=</p>
</li><li>
<p>Net::HTTP#local_port</p>
</li><li>
<p>Net::HTTP#local_port=</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p>Net::HTTP#connect uses local_host and local_port if specified.</p>
</li></ul>
</li></ul>
</li><li>
<p>net/imap</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p>Net::IMAP.default_port</p>
</li><li>
<p>Net::IMAP.default_imap_port</p>
</li><li>
<p>Net::IMAP.default_tls_port</p>
</li><li>
<p>Net::IMAP.default_ssl_port</p>
</li><li>
<p>Net::IMAP.default_imaps_port</p>
</li></ul>
</li></ul>
</li><li>
<p>objspace</p>
<ul><li>
<p>new method:</p>
<ul><li>
<p>ObjectSpace.reachable_objects_from(obj)</p>
</li></ul>
</li></ul>
</li><li>
<p>openssl</p>
<ul><li>
<p>Consistently raise an error when trying to encode nil values. All instances of OpenSSL::ASN1::Primitive now raise <a href="../TypeError.html"><code>TypeError</code></a> when calling to_der on an instance whose value is nil. All instances of OpenSSL::ASN1::Constructive raise <a href="../NoMethodError.html"><code>NoMethodError</code></a> in the same case. Constructing such values is still permitted.</p>
</li><li>
<p>TLS 1.1 &amp; 1.2 support by setting OpenSSL::SSL::SSLContext#ssl_version to :TLSv1_2, :TLSv1_2_server, :TLSv1_2_client or :TLSv1_1, :TLSv1_1_server :TLSv1_1_client. The version being effectively used can be queried with OpenSSL::SSL#ssl_version. Furthermore, it is also possible to blacklist the new TLS versions with OpenSSL::SSL::OP_NO_TLSv1_1 and OpenSSL::SSL::OP_NO_TLSv1_2.</p>
</li><li>
<p>Added OpenSSL::SSL::SSLContext#renegotiation_cb. A user-defined callback may be set which gets called whenever a new handshake is negotiated. This also allows to programmatically decline (client) renegotiation attempts.</p>
</li><li>
<p>Support for “0/n” splitting of records as BEAST mitigation via OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS.</p>
</li><li>
<p>The default options for OpenSSL::SSL::SSLContext have changed to OpenSSL::SSL::OP_ALL &amp; ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS instead of OpenSSL::SSL::OP_ALL only. This enables the countermeasure for the BEAST attack by default.</p>
</li><li>
<p>OpenSSL requires passwords for decrypting PEM-encoded files to be at least four characters long. This led to awkward situations where an export with a password with fewer than four characters was possible, but accessing the file afterwards failed. OpenSSL::PKey::RSA, OpenSSL::PKey::DSA and OpenSSL::PKey::EC therefore now enforce the same check when exporting a private key to PEM with a password - it has to be at least four characters long.</p>
</li><li>
<p>SSL/TLS support for the Next Protocol Negotiation extension. Supported with OpenSSL 1.0.1 and higher.</p>
</li><li>
<p>OpenSSL::OPENSSL_FIPS allows client applications to detect whether OpenSSL is FIPS-enabled. OpenSSL.fips_mode= allows turning on and off FIPS mode manually in order to adapt to situations where FIPS mode would be an explicit requirement.</p>
</li><li>
<p>Authenticated Encryption with Associated <a href="../Data.html"><code>Data</code></a> (AEAD) is supported via Cipher#auth_data= and Cipher#auth_tag/Cipher#auth_tag=. Currently (OpenSSL 1.0.1c), only GCM mode is supported.</p>
</li></ul>
</li><li>
<p>ostruct</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p>OpenStruct#[], []=</p>
</li><li>
<p>OpenStruct#each_pair</p>
</li><li>
<p>OpenStruct#eql?</p>
</li><li>
<p>OpenStruct#hash</p>
</li><li>
<p>OpenStruct#to_h converts the struct to a hash.</p>
</li></ul>
</li><li>
<p>extended method:</p>
<ul><li>
<p>OpenStruct.new also accepts an OpenStruct / <a href="../Struct.html"><code>Struct</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p>pathname</p>
<ul><li>
<p>extended method:</p>
<ul><li>
<p>Pathname#find returns an enumerator if no block is given.</p>
</li></ul>
</li></ul>
</li><li>
<p>rake</p>
<ul><li>
<p>rake has been updated to version 0.9.5.</p>

<p>This version is backwards-compatible with previous rake versions and contains many bug fixes.</p>

<p>See <a href="http://rake.rubyforge.org/doc/release_notes/rake-0_9_5_rdoc.html">rake.rubyforge.org/doc/release_notes/rake-0_9_5_rdoc.html</a> for a list of changes in rake 0.9.3, 0.9.4 and 0.9.5.</p>
</li></ul>
</li><li>
<p><a href="../RDoc.html"><code>RDoc</code></a></p>
<ul><li>
<p><a href="../RDoc.html"><code>RDoc</code></a> has been updated to version 4.0</p>

<p>This version is largely backwards-compatible with previous rdoc versions. The most notable change is an update to the ri data format (ri data must be regenerated for gems shared across rdoc versions).  Further API changes are internal and won’t affect most users.</p>

<p>Notable changes include:</p>
<ul><li>
<p>Page support for ri.  Try ‘ri ruby:` for a list of pages in ruby or `ri ruby:syntax/literals` for the syntax documentation for literals.</p>

<p>This also works for gems such as ‘ri rspec:README` for the rspec gem’s <a href="../ruby_3_3_0_preview2/README_md.html">README</a> file.</p>
</li><li>
<p>Markdown support.  See ri RDoc::Markdown for details.</p>
</li></ul>

<p>See <a href="https://github.com/rdoc/rdoc/blob/master/History.rdoc">github.com/rdoc/rdoc/blob/master/History.rdoc</a> for a full list of changes in rdoc 4.0.</p>
</li></ul>
</li><li>
<p>resolv</p>
<ul><li>
<p>new methods:</p>
<ul><li>
<p>Resolv::DNS#timeouts=</p>
</li><li>
<p>Resolv::DNS::Config#timeouts=</p>
</li></ul>
</li></ul>
</li><li>
<p>rexml</p>
<ul><li>
<p>REXML::Document#write supports <a href="../Hash.html"><code>Hash</code></a> arguments.</p>
</li><li>
<p>REXML::Document#write supports new :encoding option. It changes XML document encoding. Without :encoding option, encoding in XML declaration is used for XML document encoding.</p>
</li></ul>
</li><li>
<p>RubyGems</p>
<ul><li>
<p>Updated to 2.0.0</p>

<p>RubyGems 2.0.0 features the following improvements:</p>
<ul><li>
<p>Improved support for default gems shipping with ruby 2.0.0+</p>
</li><li>
<p>A gem can have arbitrary metadata through Gem::Specification#metadata</p>
</li><li>
<p>‘gem search` now defaults to –remote and is anchored like gem list.</p>
</li><li>
<p>Added –document to replace –rdoc and –ri.  Use –no-document to disable documentation, –document=rdoc to only generate rdoc.</p>
</li><li>
<p>Only ri-format documentation is generated by default.</p>
</li><li>
<p>‘gem server` uses RDoc::Servlet from <a href="../RDoc.html"><code>RDoc</code></a> 4.0 to generate HTML documentation.</p>
</li></ul>

<p>For an expanded list of updates and bug fixes see: <a href="https://github.com/rubygems/rubygems/blob/master/History.txt">github.com/rubygems/rubygems/blob/master/History.txt</a></p>
</li></ul>
</li><li>
<p>shellwords</p>
<ul><li>
<p>Shellwords#shellescape now stringifies the given object using to_s.</p>
</li><li>
<p>Shellwords#shelljoin accepts non-string objects in the given array, each of which is stringified using to_s.</p>
</li></ul>
</li><li>
<p>stringio</p>
<ul><li>
<p>deprecated methods:</p>
<ul><li>
<p>StringIO#lines, bytes, chars and codepoints are deprecated.</p>
</li></ul>
</li></ul>
</li><li>
<p>syslog</p>
<ul><li>
<p>Added Syslog::Logger which provides a Logger API atop Syslog.</p>
</li><li>
<p>Syslog::Priority, Syslog::Level, Syslog::Option and Syslog::Macros are introduced for easy detection of available constants on a running system.</p>
</li></ul>
</li><li>
<p>tmpdir</p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p>Dir.mktmpdir uses FileUtils.remove_entry instead of FileUtils.remove_entry_secure.  This means that applications should not change the permission of the created temporary directory to make writable from other users.</p>
</li></ul>
</li></ul>
</li><li>
<p>yaml</p>
<ul><li>
<p>Syck has been removed.  YAML now completely depends on libyaml being installed.</p>
</li><li>
<p>libyaml is now bundled with ruby, for cases where the library is not installed locally.</p>
</li></ul>
</li><li>
<p>zlib</p>
<ul><li>
<p>Added streaming support for Zlib::Inflate and Zlib::Deflate.  This allows processing of a stream without the use of large amounts of memory.</p>
</li><li>
<p>Added support for the new deflate strategies Zlib::RLE and Zlib::FIXED.</p>
</li><li>
<p>Zlib streams are now processed without the GVL.  This allows gzip, zlib and deflate streams to be processed in parallel.</p>
</li><li>
<p>deprecated methods:</p>
<ul><li>
<p>Zlib::GzipReader#lines and bytes are deprecated.</p>
</li></ul>
</li></ul>
</li></ul>

<h3 id="label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)<span><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>OpenStruct new methods can conflict with custom attributes named “each_pair”, “eql?”, “hash” or “to_h”.</p>
</li><li>
<p>Dir.mktmpdir in lib/tmpdir.rb</p>

<p>See above.</p>
</li></ul>

<h3 id="label-C+API+updates">C API updates<span><a href="#label-C+API+updates">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>NUM2SHORT() and NUM2USHORT() added. They are similar to NUM2INT, but short.</p>
</li><li>
<p>rb_newobj_of() and NEWOBJ_OF() added. They create a new object of a given class.</p>
</li></ul>

</main>

</div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>.</p><p><a href="https://jamesbritt.bandcamp.com/">Maximum R+D</a>.  </p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

